﻿using System;
using System.Collections.Generic;
using System.Text;
using WJ.DataSender.Service.Models.ConfigModel;

namespace WJ.DataSender.Service.Commen
{
    public static class CacheValues
    {
        /// <summary>
        /// 缓存配置文件信息
        /// </summary>
        public static  AppsettingConfigModel AppsettingConfig ;

        /// <summary>
        /// 缓存设备配置信息
        /// </summary>
        public static  EquipmentConfigModel EquipmentConfig;

        /// <summary>
        /// 初始化缓存文件
        /// </summary>
        public static void Init()
        {
            AppsettingConfig = JsonFileHelper<AppsettingConfigModel>.GetConfigInfo();
            EquipmentConfig = JsonFileHelper<EquipmentConfigModel>.GetConfigInfo();
        }
    }
}
